package com.saas.demo.service.impl;

import com.saas.demo.dao.IUserDao;
import com.saas.demo.model.User;
import com.saas.demo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: demo
 * @description:
 * @author: guoxh
 * @create: 2019-01-25 11:48
 **/
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao iUserDao;

    @Override
    public User save(User user) {
        return iUserDao.save(user);
    }

    @Override
    public List<User> getUserList() {
        return iUserDao.findAll();
    }
}
